package com.sam.thread.demo4;

/**
 * Created by SamZhao on 2017/5/29.
 */
public class Demo4 {
    public static void main(String[] args) {
        Resource resource = new Resource();

        Input input = new Input(resource);
        Output output = new Output(resource);

        Thread thread = new Thread(input);
        Thread thread1 = new Thread(output);

        thread.start();
        thread1.start();

    }
}
